<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDeclaresTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('merchant_pay_basics', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('merchant_id')->default(0)->comment('商户ID');
            $table->string('fullName', 32)->comment('商户全称');
            $table->string('shortName', 32)->comment('商户简称');
            $table->string('industry', 32)->comment('商户所属行业');
            $table->timestamps();
        });
        Schema::create('merchant_pay_settlement', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamps();
        });
        Schema::create('merchant_pay_stores', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamps();
        });
        Schema::create('merchant_pay_enclosures', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamps();
        });
        Schema::create('merchant_pay_posts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamps();
        });
        Schema::create('merchant_audit_status', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamps();
        });
        Schema::create('merchant_pay_info', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('merchant_pay_basics');
        Schema::dropIfExists('merchant_pay_settlement');
        Schema::dropIfExists('merchant_pay_stores');
        Schema::dropIfExists('merchant_pay_enclosures');        
        Schema::dropIfExists('merchant_pay_posts');
        Schema::dropIfExists('merchant_audit_status');
        Schema::dropIfExists('merchant_pay_info');


    }
}
